<template>
	<view class="window-main" style="justify-content: flex-end;" v-if="showJoinSuccessWindow">
		<view class="join-success-window">
			<image class="shadow" src="../static/common/bg_shadow_window_full.png"></image>
			<image class="success-ic" src="../static/common/ic_success.png"></image>
			<text class="font-333-36" style="font-weight: 600;">恭喜，您已抢到餐补名额</text>
			<view class="column-container-row-center" style="width: calc(100% - 88rpx);">
				<text class="hint">请马上到“美团”平台下单，并按要求在 4小时 内把订单编号提交到本平台，将获得8元微信红包奖励</text>
				<view class="ask-box">
					<text class="font-333-28">任务要求：</text>
					<view class="row-container" style="margin-top: 10rpx;">
						<image class="tips-ic" src="../static/common/ic_chosen_true.png"></image>
						<text class="font-333-32" style="font-weight: 600;">本店通用</text>
					</view>
					<view class="row-container" style="margin-top: 10rpx;">
						<image class="tips-ic" src="../static/common/ic_chosen_true.png"></image>
						<text class="font-333-32" style="font-weight: 600;">非会员: 实付18元领8元</text>
					</view>
					<view class="row-container" style="margin-top: 10rpx;">
						<image class="tips-ic" src="../static/common/ic_chosen_true.png"></image>
						<text class="font-333-32" style="font-weight: 600;">5星好评+10字+晒3图</text>
					</view>
				</view>
				<view class="column-container" style="margin-top: 40rpx;width: 100%;">
					<text class="font-333-28" style="font-weight: 600;">温馨提示</text>
					<text class="font-666-28" style="margin-top: 12rpx;">1、超时未提交订单，名额失效无奖励</text>
					<text class="font-666-28" style="margin-top: 5rpx;">2、与美团本身优惠不冲突，额外返的</text>
					<text class="font-666-28" style="margin-top: 5rpx;">3、您今天限抢 3 次，你已抢1次</text>
				</view>
				<view class="row-container-row-between" style="width: 100%;margin-top: 44rpx;">
					<text class="cancel-btn" @click="showJoinSuccessWindow = false">返回</text>
					<text class="confirm-btn">去美团下单</text>
				</view>
				
				
			</view>
			
			
		</view>
	</view>
</template>

<script>
	export default {
		name:"JoinSuccessWindow",
		data() {
			return {
				showJoinSuccessWindow:false
			};
		}
	}
</script>

<style lang="scss">
	.join-success-window{
		display: flex;
		flex-direction: column;
		width: 100%;
		position: relative;
		background: white;
		border-top-left-radius: 16rpx;
		border-top-right-radius: 16rpx;
		align-items: center;
		padding-bottom: 44rpx;
		
		.shadow{
			width: 100%;
			height: 220rpx;
			position: absolute;
			top: 0;
		}
		
		.success-ic{
			width: 108rpx;
			height: 108rpx;
			margin-top: 50rpx;
			margin-bottom: 30rpx;
			z-index: 110;
		}
		
		.hint{
			color: #666666;
			font-size: 28rpx;
			line-height: 39rpx;
			margin-top: 10rpx;
			text-align: center;
		}
		
		.ask-box{
			display: flex;
			flex-direction: column;
			width: calc(100% - 48rpx);
			margin-top: 40rpx;
			background: rgba(255, 209, 0, 0.1);
			padding: 24rpx;
			border-radius: 10rpx;
			
			.tips-ic{
				width: 30rpx;
				height: 30rpx;
				margin-right: 12rpx;
			}
		}
		
		.cancel-btn{
			flex-grow: 1;
			height: 88rpx;
			background: #F5F5F5;
			border: #E0E0E0 solid 1rpx;
			border-radius: 10rpx;
			margin-right: 15rpx;
			color: #333333;
			font-size: 32rpx;
			text-align: center;
			line-height: 88rpx;
		}
		
		.confirm-btn{
			flex-grow: 1;
			height: 88rpx;
			background: #FFD100;
			border-radius: 10rpx;
			margin-left: 15rpx;
			color: #333333;
			font-weight: 600;
			font-size: 32rpx;
			text-align: center;
			line-height: 88rpx;
		}
		
	}
</style>